<?php
namespace app\common\validate;
use think\Validate;
class Deal extends Validate{
    
    protected $rule=[
        "name"=>"require",
        "category_id"=>"number",
        "location_ids"=>"require",
        "description"=>"require",
        "start_time"=>"require",
        "end_time"=>"require",
        "origin_price"=>"require",
        "current_price"=>"require",
        "city_id"=>"require",
        "coupons_begin_time"=>"require",
        "coupons_end_time"=>"require",
        "notes"=>"require",
    ];
    
    protected  $scene=[
        "status"=>["status","id"],//status
    ];
}

